package com.pattern.objectcreator.simplefactory;

import java.math.BigDecimal;

/**
 * @author yangguanzan
 * @date 3/15/22
 * @description
 */
public class PlusOPeration implements SimpleOperation {

    @Override
    public BigDecimal operate(BigDecimal first,BigDecimal second) {
        if(null==first||null==second){
            return null;
        }

        return first.add(second);
    }
}
